package com.gdut.simple.data.remote.http.service;

import com.gdut.simple.data.remote.api.NewsApi;
import com.gdut.simple.data.entity.News;
import com.gdut.simple.data.entity.Result;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Observable;

public interface INewService {

    @GET("/{type}/?key=" + NewsApi.TIAN_APIKEY)
    Observable<Result<List<News>>> getNews(@Path("type") String type, @Query("page") int page, @Query("num") int num);

}
